AT&T won approval from a US court on Tuesday to buy Time Warner for $85 billion, dealing a blow to US President Donald Trump's administration which tried to block the deal and likely setting off a wave of corporate mergers.