hi,
For OPA the 'extra' power appearing between the input signal and output is drawn from the power supplies to the OPA... so the laws of conservation are not violated.
Regarding transformers, none are perfect, so you will always get less 'power' out than you put in,, again the laws of conservation are not violated.