Appeals court reinstates Tennessee abortion waiting period