The 3D multi-layered solvable six-vertex model: The phase diagram