Plans to build a 250MW solar farm and four-hour 150 MW battery energy storage system in NSW have been given state approval.