You can certainly petition the court for a restraining order against the female. If the other partner was not directly involved in the harassment, the court will most likely not include that party in the Order. Since they are tenants in the same building as you, obtaining a court injunction may have other unintended consequences for the parties involved.

If the couple was fighting for three hours, why did you not call the police earlier and report the disturbance? Most police agencies are generally good at responding to disturbance of the peace calls when the disturbance is reported as fighting or a domestic dispute. Those can quickly get out of hand and it's usually far better for the police to deal with the situation than a neighbor.