The companies can complete the deal before a Federal Trade Commission hearing that is scheduled for August.