Usually what happens is "they" select a judge which will rule in their favor. It's that simple and has been done for many years to buy time, do damage control and so on.
In US, the judges are selected by the Senate of Representatives. So what is so surprising, if the rulings are biased?