The improved revenues and trimmed losses cap off a 2024 that could redefine Rivian’s long-term future and its planned $5 billion factory an hour east of Atlanta.