From Oscillatory Integrals and Sublevel Sets to Polynomial Congruences and Character Sums