It's a thorny topic, but it does happen, and 95% of the time, it's completely unintentional on their part. What drives it is an acute sense of discomfort and insecurity, because YOU ARE CHANGING. In the back of their mind lurks the demon that tells them "If he/she changes his life, he'll leave me". or other worries.
One other aspect; They feel guilty for their insecurities, so they may get unreasonably angry with you. They may also not be unreasonably angry, because you may be unintentionally pushing them to do things they don't want to, but you do now because you are a lot more active. The third factor is that you are less dependent on them, and this gets them scared, because again you are becoming an unknown.......if you no longer need them, are you going to kick them to the curb? (not that you will, but fear is rarely rational)
And finally, there's the green eyed monster.........your spouse, or others see you succeeding where they have failed, and it gets them angry. Again, it's not a rational response, but it is a human one, and that anger feeds on itself, because they also feel guilty for being angry.
What can you do? Ride it out and be patient while they deal with the changes occurring in you. Be consistent in good behaviors toward your spouse or others....they really don't mean to be acting oddly, but they are only responding at an emotional level to the changes. So, let's hear some of your coping strategies when those around you seem like they are trying to sabotage you.