A Bangladesh court has sentenced former Prime Minister Sheikh Hasina to life imprisonment for crimes against humanity.