Joe Biden took the oath of office in front of a crowd diminished by the coronavirus pandemic and threats of protests, but surrounded by a heavy security presence.