A buyer has paid nearly $24 million for two Jersey City warehouses, brokerage firm Grid Real Estate said, noting that the company now plans to use the buildings for film studio space.