President Donald Trump and his allies had lobbied aggressively all week for a clean 18-month renewal of the program.