Inheritances can negatively affect a person's eligibility for government benefits. Estate planning can help.