Pakistan's apex court upholds new law on top judge's powers