Catalysis of the reaction: sn-glycerol 3-phosphate + UDP-D-galactose = 1-O-alpha-D-galactosyl-sn-glycerol 3-phosphate + H+ + UDP.
UDPgalactose:sn-glycerol-3-phosphate alpha-D-galactosyltransferase activity