The homes of a former justice minister and his deputy were searched in Poland over corruption allegations.