The Boeing 737 MAX took off from Birmingham, climbing to 35,000 feet before the crew declared an emergency