Energy stocks extend rally, ASX 200 finishes 0.3% higher