 Centrist lawmakers from several parties worried that their backing for the ban will cost them votes from Muslim and Jewish supporters hammered out the compromise shortly before a final debate on the legislation