Southwest Airlines’ fourth-quarter profit exceeded Wall Street expectations, driven by strong travel demand and higher fares.