In letters sent to General Mills, Coca-Cola and PepsiCo, the lawmakers asked the corporations to end their “pattern of profiteering.”