The US Supreme Court has rejected Donald Trump's bid to fire the Federal Reserve governor in an unprecedented move to undermine the central bank's independence.