Galois invariance, trace codes and subfield subcodes