Leaders of four EU countries lashed out at Germany for insisting on migrant quotas as the German chancellor paid a visit to Poland, a staunch opponent of Berlin’s strategy on refugees.