President Barack Obama has endorsed Hillary Clinton to be his presidential successor, and a White House spokesman said that the endorsement will not affect the F.B.I. investigation into the former Secretary of State’s use of a private email server while in office.