If we leave out 'when they saw it', this seems to be correct: The prime minister’s plan seemed quickly and sloppily put together , and the opposition party immediately attacked it. As 'when they saw it' is parenthetical, this would seem to be correct: The prime minister’s plan seemed quickly and sloppily put together , and , when they saw it , the opposition party immediately attacked it. I think that is rather excessive.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.