The Polish government has reinstated a group of Supreme Court judges who had previously been forced into early retirement.