Invariant connections and PBW theorem for homogeneous spaces of Lie groupoids