Wildfires in New Jersey have sent smoke billowing over parts of New York City, as firefighters battle to contain the blazes.