The city’s high number of tech moguls would be hit hard by the president’s plan, which classifies public stock gains as income.