A persistent heat dome is causing dangerously high temperatures across the western US, affecting millions and straining emergency services.