The vote was 218 for Johnson and 215 for Democratic Leader Hakeem Jeffries.
All Democrats voted for Jeffries.
Trump had endorsed Johnson, hoping to stave off the confusion of a January 6th without an elected speaker.
Speaker Mike Johnson with reporters earlier today.Photo by Win McNamee/Getty Images
But he was voted out later that year, and replaced by Johnson after a protracted, intra-party battle.
Roy arrived in the chamber about a half hour before the session began, seated along the main aisle.
He vowed to roll back the totalitarian fourth branch of government known as the administrative state.