A really nice place to stay is Davis, just West of Sacramento. All the Trains stop in this College Town, which is more reasonably priced than Sacramento or Emeryville.
If you do want to stay in Sacramento, the Vagabond Inn, an old style Motel, is across from the Amtrak Station and is next to...