Trump’s social media firm has been acquired – a deal that could produce a windfall as he fights legal penalties.