The US federal government's longest-ever shutdown has come to an end after Donald Trump signed off a congressional vote with his presidential approval.