It will be the first time that Mr. Trump, a Republican who also held the White House from 2017 to 2021, has had to contend with Democrats controlling both chambers of Congress