The former Congressman lost a state House race to a Trump-backed opponent, but secured a spot in the incoming administration.