Donald Trump's 'big beautiful bill' has been passed by the US congress, sending it to the president to sign into law.