NY does not distinguish long term vs short term capital gain. That means in NY any capital gain is treated the same as income, and in the state tax law there is no seprate provision for capital gain, they just call everything income.
In such case, I don't see why not treat foreign tax paid as expense for the sale and reduce your "income" accordingly.