Firefighters in northern California have struggled to contain a major wildfire due to a scorching heatwave.