Resistors rated for higher power will be larger to be able to dissipate the heat, the ones you bought are suitable replacements so long as they fit in the space. The original probably wasn't a 2W rated resistor.
That said, resistors are straightforward parts that don't often fail on their own - there's a good chance that replacing the resistor isn't the only thing that needs doing.