The new law that shields public servants including lawmakers and ministers from being investigated for on-duty action without prior sanction was necessary to end frivolous allegations meant to defame officials, a top Rajasthan minister told NDTV, defending the law that the opposition Congress says was designed to "protect the interest of the corrupt" in the state.