Solvability of three-dimensional problems with a free boundary for a stationary system of Navier-Stokes equations