Court ruling limits police use of force