Under a deal brokered Friday by the American ambassador , Zalmay Khalilzad , Islam was to be named '' a primary source of legislation '' in the new Iraqi constitution , with the proviso that no legislation be permitted that conflicted with the '' universal principles '' of the religion .