Stationary Boltzmann equation for a degenerate gas in a slab: boundary value problem and hydrodynamics