A judge has ruled that the Legislative Research Commission is responsible for legal fees incurred by lawmakers who successfully challenged how legislative districts were redrawn during this year's Kentucky General Assembly.