Regulators will still need to approve the deal.