Two major United Nations buildings in Manhattan will be renovated in a $500 million project, helping the organization consolidate its office footprint in the city.