The NYSE had resisted closing down the floor—a key part of its brand and image—even as other exchanges around the U.S. and abroad had shut their trading floors, and officials had warned against gatherings of large groups of people.