Under the legislation , a physician who performs the procedure could face up to two years in prison .