Mr. Gaetz has consistently denied the allegations of sexual misconduct and drug use, but his prospective nomination ran into trouble in the Senate.