Which class of medications works by inhibiting cyclooxygenase (COX) enzymes to reduce inflammation and pain in orthopaedic patients?