After a supermajority passed the defense spending bill, the president lashed out on Twitter, calling Senate Republicans "pathetic."