Rendered image doesn't show what Rendered Viewport shows... (pictures below)
You appear to have a plane in front of your objects and the camera:



Which is not visible in the file because it was hidden:



You could either delete the Plane object or hide it from the camera render (Check the camera icon).