Judge blocks firefighter layoffs in Atlantic City takeover