The president also went off-script at a tax event in West Virginia, unloading on undocumented immigrants.