Pakistan court orders rebuild of destroyed temple