Global regularity for the Monge-Ampère equation with natural boundary condition