Joe Biden was formally recognized by Congress as the next U.S. president early Thursday, ending two months of failed challenges by his predecessor, Donald Trump, that exploded into violence at the U.S. Capitol as lawmakers met to ratify the election result.