Have Sprite Material rotate only on one axis

Found a solution using a node tree provided in this tutorial Stylized Rendering Materials | Unreal Engine Documentation
Here is the asset
M_Grass_Masked.uasset (111.3 KB)

To handle random instance rotation I added this part to the node tree