Travel during a pending petition is not a good idea unless there is an urgency.
If you enter the country before a decision is taken, it is somewhat okay, but your previous i94 submitted with the extension is invalid and I think new i94 has to mailed to the USCIS.
Only H1 extension petition is valid even if you leave the country, non-H1 petitions are abandoned by default. Once an action has been taken against the extension petition, you need to go for stamping regardless of the visa expiry status because the extension is converted to consular processing.
You don’t need H4 I-797 for stamping, your spouse’s 797 works and you shall be stamped through its validity
I94 is a more serious thing, you will start to accrue unlawful presence once it expires and you have not taken any measure like a COS or EOS or a transfer to new company.
There is nothing like cannot travel after I94 expires, I94 is a form that tells gives you a date until which you status is legal or lawful. If have not take any step that extends your I94, leave by that date.
This info, I deem it to be truthful. But the moderator has to validate. Thanks.