Astros agree to deal with standout free agent infielder