Trade your games in, receive the credit on a trade card.
Make your steam card purchase in a separate transaction.
I'm not actually aware of any restriction of having the trade and purchase on the same transaction. The restriction in place is any purchase of gift cards using Gamestop gift...