Human rights groups and diplomats criticized a law that was quietly passed by the Iraqi parliament over the weekend that would impose heavy prison sentences on gay and transgender people. A U.S. State Department spokesperson said that the law “threatens those most at risk in Iraqi society.