WASHINGTON — President Obama on Tuesday largely commuted the remaining prison sentence of Chelsea Manning, the army intelligence analyst convicted of an enormous 2010 leak that revealed American military and diplomatic activities across the world, disrupted the administration, and made WikiLeaks, the recipient of those disclosures, famous.