WASHINGTON—President Donald Trump, stepping up his efforts to bring the Russia investigation to a conclusion, has hired longtime ally and former New York City Mayor Rudy Giuliani as part of the legal team representing him in the probe.

Mr. Giuliani is joining the team amid bubbling tensions between the Justice Department and the White House.

Mr....