The executive order, which will apply to agencies in the New York governor’s administration, is meant to show support for Israel amid a Palestinian-backed economic campaign.