Federal judge sentences Somali pirate to 25 years in prison