The dusty casino outpost on the California-Nevada border has been saved — just weeks before its last full-time gambling resort was set to shut down for good.