Bowing to pressure, the company said it would restrict X users from generating explicit images of real people in jurisdictions where such content is illegal.