The Kentucky congressman lost to a Trump-backed challenger in one of the cycle’s most closely watched races.