Firefighters are racing to contain a massive wildfire near Phoenix that has destroyed several homes and shut down a major highway.