The car service Uber has agreed to limit prices during emergencies, natural disasters or other unusual market disruptions consistent with New York's law against price gouging, the company and state attorney general said Tuesday.