A Texas man was sentenced to eight years in prison Wednesday after the authorities caught him with a partially 3D-printed rifle and a hit list of lawmakers, according to federal prosecutors.