The European Commission approved Synopsys' $35 billion acquisition of Ansys after the companies offered to divest parts of their business to ease fears it could hinder competition.