Woods battles back pain, Scott wins The Barclays