A hat-trick from all-rounder Shamar Springer sealed a consolation win for West Indies by 15 runs in their final T20I against Afghanistan at Dubai.