TOKYO - Japan's ruling bloc and two opposition parties agreed Thursday to revise a controversial bill that, if passed, would amend an immigration law enabling authorities to deport individuals who apply repeatedly for refugee status.