The H1B visa is a dual intent visa, meaning that it's permissible to seek permanent residency while holding a valid H1B. Thus, the fact that you filed the I-130 (or I-130 and I-485 with it being generally recommended to obtain advance parole before travel) shouldn't affect your spouse's ability to travel on the H1B.
I am always wary of answering this type of question, out of concern that an omitted detail may change the outcome; I thus think it's wise to consult an immigration lawyer.

