A U.S. Army officer who secretly gave abortion medication to a pregnant junior enlisted soldier was sentenced Wednesday to 12 years in prison.