Yannick Weber scored the winner as the Nashville Predators rallied back to beat the Washington Capitals 5-4.