President Donald Trump said that it "doesn't work out well" for congressmembers who vote against the president.