Anything that we learn of biology will help with the eventual terraforming. That is not the sort of thing that necessarily needs to be researched directly right now, researching things in general expands our knowledge base, giving something for terraforming research to stand and build on.
Concerning your last paragraph - while it may be true, I'm pretty sure that gaining terraforming-related knowledge plays a very minor role in NASA's research decisions, which is also something we shouldn't be happy about.