A Russian court has sentenced US basketball star Brittney Griner to nine years in prison on drug charges.