Get the current session type, cli or lightdm+xfce:
systemctl get-default
Set the cli by disabling lightdm autostart:
systemctl set-default multi-user.target reboot
This was all I did to get my Raspberry Pi 3 to boot into the CLI and not start the GUI.