The Supreme Court ruled Monday the federal government has the power to indefinitely keep some sex offenders behind bars after they have served their sentences, if officials determine those inmates may prove "sexually dangerous" in the future.

"The federal government, as custodian of its prisoners, has the constitutional power to act in order to protect nearby (and other) communities from the danger such prisoners may pose," Justice Stephen Breyer wrote for the 7-2 majority.

Monday's other Supreme Court rulings:

Court: Sentencing juveniles to life without parole 'cruel and unusual'



High court rules for father in international child custody case

