Jordan Poole scored a career-high 21 points as the Golden State Warriors snapped their 10-game losing streak.