Republican senator switches vote at impeachment trial