A 45-year-old man presents with colicky right upper quadrant abdominal pain radiating to the back, associated with fever and jaundice. Examination reveals right upper quadrant tenderness and a positive Murphy sign. Laboratory tests show elevated bilirubin and alkaline phosphatase. What is the most appropriate next step in management?