How can I support an already installed shower valve?
I'd consider canned spray foam around 2 or more pipes slightly back in the wall cavity (not around the valve itself). The foam should have enough flexibility to handle expansion, and the wide contact area should provide solid stability. 

Be sure to use window &amp; door (minimal expansion) foam so you don't bulge your drywall.