Each year, the President submits a budget request to Congress. Congress can add to or subtract from that request, and does, on an item-by-item basis.
The Defense Department Budget rolls up the total spending by each military department—the Departments of the Air Force (which also includes the Space Force), the Navy (which also includes the Marine Corps), and the Army.