Following the stars can help lead us closer to God, the director of the Vatican Observatory has said.