The US Supreme Court has upheld tariffs on billions of dollars of Chinese goods imposed during President Donald Trump's first term.