You probably won’t be able to do this without the capacity to hit and send back bullets, as the sword is really not meant to deal with the Judges.
Once you have the power, simply learn the two or three attack phases of the boss you want to fight and you should not have too much troubles.
The Spider or the first Judge are probably your best options for this.