William Nylander scored with under a minute remaining in overtime to give the Maple Leafs a much-needed win over St. Louis.