MSPs approve reforms to modernise judicial factors law