Lawyer accused of bringing drugs to jail, having sex with inmate