The event, staged near Central Park in Manhattan, was a rally for city residents who have vowed to pursue their own policies on health care, the environment and other issues during the Trump administration.