Millions of people in Britain stayed home or sought shade Monday during the country’s first-ever extreme heat warning, as the hot, dry weather that has scorched mainland Europe for the past week moved north, buckling rail lines and forcing two airports to close their runways.