Plans to upgrade a Pembrokeshire early learning centre so it will comply with fire safety regulations have been given the go-ahead.