If anything, Padme commits career suicide by dealing with Anakin on that level. She had way more to lose than she had to gain by becoming romantically involved with Skywalker. She knows Jedi aren't suppose to marry but she marries one anyway. Now one might say that she's not doing anything wrong, it's Anakin who is disobeying the Jedi Code. But as a galatic senator Padme looks extra bad because she married a Jedi, knowing Jedi aren't suppose to marry. It makes her appear incompetent and weak.