WASHINGTON—When Comcast Corp. heard rumors that President Barack Obama was preparing to call for tough new Internet regulations, the cable giant’s influence machine swung into action.

Chief Executive Brian Roberts telephoned Valerie Jarrett, Mr. Obama’s senior adviser. He pressed her for information and stressed that Comcast opposed such a move, according to people familiar with the call.

But...