I think it's you who haven't read the Constitution. The vote in the House would have been state by state, with each state getting one vote. If all states with Republican-dominated House delegations voted for Trump (as would be expected), Trump would have won.