WASHINGTON—Support for curbing large technology companies’ market power is widening in the Senate, with lawmakers in both parties endorsing new legal constraints on search engines, e-marketplaces, app stores and other online platforms.

Lawmakers say they are responding to public concerns over the size and influence of the tech companies.