"Because of your hard work little girls EVERYWHERE can dream as big as the MOON," the actress, who played Katherine Johnson, said of the mathematician