Most people seem to not understand that that's the same bill. The NDAA is an annual bill specifying the defense budget. The indefinite detention provisions that upset so many people are attached to that bill.
As the President cannot veto part of a bill, vetoing the NDAA over those provisions would literally mean vetoing the entire defense budget.