I doubt that this is homework, as the questioner is using his real name.
Unfortunately, finding an assignment of states with an approximation ratio better than 2 (assuming Unique Games; 1.3606 otherwise) is NP-hard. Let G be an instance of minimum vertex cover. The set A has a vertex for each edge in G. The set B has a vertex for each vertex in G. Let w(aj, bk, 0) be 1 if the lesser endpoint of the edge corresponding to aj corresponds to bk, and 0 otherwise. Define w(aj, bk, 1) similarly with respect to the greater endpoint. The minimum maximum matching of this instance has cardinality equal to the minimum vertex cover of G, and the latter problem is hard to approximate.
On the algorithms front, we can replace the inner maximum-weight-matching problem by its linear programming dual so as to minimize a minimum. Here yj is the dual variable corresponding to aj, and zk is the dual variable corresponding to bk.
min ∑j yj + ∑k zk
s.t.
∀j,k. yj + zk ≥ (1 - s(aj)) w(aj, bk, 0) + s(aj) w(aj, bk, 1)
∀j. s(aj) ∈ {0, 1}
∀j. yj ≥ 0
∀k. zk ≥ 0
This formulation is a mixed-integer program, which can be attacked without too much human effort by off-the-shelf software (e.g., the GNU Linear Programming Kit). It may or may not be better than brute force.