Instead use the MongoID (ObjectID), you could use your own PK:
When you insert the Companies document, if you explicitely declare a field named '_id', and his value, mongodb is not going to create the Object_id again, also you can store that value you declared in a variable, and reuse it for insert the document in Users collection.
or you could make a find on Companies after the insert in it, looking for the last insert, and extrapolate the id generated by the system and reuse it.
hope that helps