Alabama also gets a ton of Federal contracts relative to total taxes paid.
But there's 3 Army bases including the one where subcontractors rebuild all the M1 Abrams and Bradley fighting vehicles as well as other vehicles for the Army. United Launch Alliance where NASA gets all their Delta Rockets is in Alabama, and the Redstone Arsenal with the NASA Goddard Space Flight Center is in Alabama.
Plus GSA buys a ton of Hyundai's built in Montgomery.