Xenoarchaeology units study the ruins for some time automatically until they identify them. Then the number of facilities will be shown. Those can be restored with engineers units.
As for the anomaly, if you have research labs on planet that work on project that match the anomaly, you get the bonus. In your case that is Defense field technologies.