Elon Musk's SpaceX filed publicly for its hotly anticipated US initial public offering on Wednesday, moving the firm closer to what could be the biggest stock market flotation ever.