Veering triangulations and polynomial invariants of three-manifolds