I had this issue with my iPad. I went to appleid.apple.com and removed all trusted devices. Then, I could finally login with my apple id in my iPad. You can't deactivate the 2 factor authentication once you've enabled it, but you can delete the devices and that helped!