The company announced Thursday that it will not build a headquarters in New York City due to local opposition.