President Barack Obama held a town hall meeting with university students in Shanghai on Monday afternoon, but unlike previous such gatherings with other American presidents, Mr. Obama’s question-and-answer session was not broadcast live on China’s official state network.