The new government, aiming to restore judicial independence, has passed a law in the lower house of parliament.