President-elect Donald J. Trump was forced to negotiate with Democrats over the borrowing cap during his first term.