The bill has already caused rifts with close allies and drawn international condemnation.