Leahy sworn in as president pro tempore of Senate