Andhra govt to bear legal expenses of 5 ministers