The US Congress has certified Joe Biden as the next president of the country, hours after supporters of outgoing President Donald Trump attacked the Capitol in a harrowing move that left the nation and the world astonished.